/*
 * @(#) Article.java 2018年2月8日 下午5:29:02
 *
 * Copyright 2018 CIMIP, Inc. All rights reserved.
 * H-VISIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package cn.hc.share.entity;

import java.io.Serializable;
import java.sql.Timestamp;

public class Article implements Serializable
{

	private static final long serialVersionUID = 1L;
	
	private String id;//文本id
	private String title;//文本标题
	private String author;//作者
	private Timestamp createTime;//创建时间
	private String menuId;//目录的id
	private String tagId;//标签id
	private String category;//类别(求助/草稿/文章)
	private String content;//文本内容
	private Timestamp lastModifyTime;
	private int visitNum;//访问量
	
	public Timestamp getLastModifyTime()
	{
		return lastModifyTime;
	}
	public void setLastModifyTime(Timestamp lastModifyTime)
	{
		this.lastModifyTime = lastModifyTime;
	}
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getTitle()
	{
		return title;
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public String getAuthor()
	{
		return author;
	}
	public void setAuthor(String author)
	{
		this.author = author;
	}
	public Timestamp getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Timestamp createTime)
	{
		this.createTime = createTime;
	}
	public String getMenuId()
	{
		return menuId;
	}
	public void setMenuId(String menuId)
	{
		this.menuId = menuId;
	}
	public String getTagId()
	{
		return tagId;
	}
	public void setTagId(String tagId)
	{
		this.tagId = tagId;
	}
	public String getCategory()
	{
		return category;
	}
	public void setCategory(String category)
	{
		this.category = category;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Article other = (Article) obj;
		if (id == null)
		{
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString()
	{
		return "Article [id=" + id + ", title=" + title + ", author=" + author + ", createTime=" + createTime
				+ ", menuId=" + menuId + ", tagId=" + tagId + ", category=" + category + ", lastModifyTime="
				+ lastModifyTime + "]";
	}
	public int getVisitNum()
	{
		return visitNum;
	}
	public void setVisitNum(int visitNum)
	{
		this.visitNum = visitNum;
	}
	
	
	
	
	
}
